package edu.yngsxy.wkstudy.core.sys.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import edu.yngsxy.wkstudy.core.model.entity.WkBaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * <p>
 * 试题标签表
 * </p>
 *
 * @author group 2
 * @since 2025-09-09
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("questiontag")
@Schema(description = "试题标签表")
public class Questiontag extends WkBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 试题标签ID
     */
    @TableField(value = "question_tag_id")
    @Schema(title = "试题标签ID", description = "试题标签ID", requiredMode =Schema.RequiredMode.REQUIRED)
    @NotNull(message = "试题标签ID不能为空")
    private Integer questionTagId;

    /**
     * 标签名称（如初学者、进阶）
     */
    @TableField("tag_name")
    @Schema(title = "标签名称（如初学者、进阶）", description = "标签名称（如初学者、进阶）", requiredMode =Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "标签名称（如初学者、进阶）不能为空")
    @Size(max = 50, message = "标签名称（如初学者、进阶）长度不能超过50个字符")
    private String tagName;
}
